package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_ACLS_ORG"
 *     
*/
public class CcpAclsOrg implements Serializable {

    /** identifier field */
    private String caoGuid;

    /** nullable persistent field */
    private String unitCode;

    /** nullable persistent field */
    private String unitName;

    /** nullable persistent field */
    private String unitAlias;

    /** nullable persistent field */
    private String responser;

    /** nullable persistent field */
    private String address;

    /** nullable persistent field */
    private String postCode;

    /** nullable persistent field */
    private String tel;

    /** nullable persistent field */
    private Integer totalArea;

    /** nullable persistent field */
    private Integer officeArea;

    /** nullable persistent field */
    private Integer plantsArea;

    /** nullable persistent field */
    private Integer totalStaff;

    /** nullable persistent field */
    private Integer graduate;

    /** nullable persistent field */
    private Integer underGraduate;

    /** nullable persistent field */
    private Integer tertiary;

    /** nullable persistent field */
    private String orgGuid;

    /** full constructor */
    public CcpAclsOrg(String caoGuid, String unitCode, String unitName, String unitAlias, String responser, String address, String postCode, String tel, Integer totalArea, Integer officeArea, Integer plantsArea, Integer totalStaff, Integer graduate, Integer underGraduate, Integer tertiary, String orgGuid) {
        this.caoGuid = caoGuid;
        this.unitCode = unitCode;
        this.unitName = unitName;
        this.unitAlias = unitAlias;
        this.responser = responser;
        this.address = address;
        this.postCode = postCode;
        this.tel = tel;
        this.totalArea = totalArea;
        this.officeArea = officeArea;
        this.plantsArea = plantsArea;
        this.totalStaff = totalStaff;
        this.graduate = graduate;
        this.underGraduate = underGraduate;
        this.tertiary = tertiary;
        this.orgGuid = orgGuid;
    }

    /** default constructor */
    public CcpAclsOrg() {
    }

    /** minimal constructor */
    public CcpAclsOrg(String caoGuid) {
        this.caoGuid = caoGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CAO_GUID"
     *         
     */
    public String getCaoGuid() {
        return this.caoGuid;
    }

    public void setCaoGuid(String caoGuid) {
        this.caoGuid = caoGuid;
    }

    /** 
     *            @hibernate.property
     *             column="UNIT_CODE"
     *             length="20"
     *         
     */
    public String getUnitCode() {
        return this.unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode;
    }

    /** 
     *            @hibernate.property
     *             column="UNIT_NAME"
     *             length="100"
     *         
     */
    public String getUnitName() {
        return this.unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    /** 
     *            @hibernate.property
     *             column="UNIT_ALIAS"
     *             length="50"
     *         
     */
    public String getUnitAlias() {
        return this.unitAlias;
    }

    public void setUnitAlias(String unitAlias) {
        this.unitAlias = unitAlias;
    }

    /** 
     *            @hibernate.property
     *             column="RESPONSER"
     *             length="20"
     *         
     */
    public String getResponser() {
        return this.responser;
    }

    public void setResponser(String responser) {
        this.responser = responser;
    }

    /** 
     *            @hibernate.property
     *             column="ADDRESS"
     *             length="100"
     *         
     */
    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    /** 
     *            @hibernate.property
     *             column="POST_CODE"
     *             length="10"
     *         
     */
    public String getPostCode() {
        return this.postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    /** 
     *            @hibernate.property
     *             column="TEL"
     *             length="20"
     *         
     */
    public String getTel() {
        return this.tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    /** 
     *            @hibernate.property
     *             column="TOTAL_AREA"
     *             length="10"
     *         
     */
    public Integer getTotalArea() {
        return this.totalArea;
    }

    public void setTotalArea(Integer totalArea) {
        this.totalArea = totalArea;
    }

    /** 
     *            @hibernate.property
     *             column="OFFICE_AREA"
     *             length="10"
     *         
     */
    public Integer getOfficeArea() {
        return this.officeArea;
    }

    public void setOfficeArea(Integer officeArea) {
        this.officeArea = officeArea;
    }

    /** 
     *            @hibernate.property
     *             column="PLANTS_AREA"
     *             length="10"
     *         
     */
    public Integer getPlantsArea() {
        return this.plantsArea;
    }

    public void setPlantsArea(Integer plantsArea) {
        this.plantsArea = plantsArea;
    }

    /** 
     *            @hibernate.property
     *             column="TOTAL_STAFF"
     *             length="10"
     *         
     */
    public Integer getTotalStaff() {
        return this.totalStaff;
    }

    public void setTotalStaff(Integer totalStaff) {
        this.totalStaff = totalStaff;
    }

    /** 
     *            @hibernate.property
     *             column="GRADUATE"
     *             length="10"
     *         
     */
    public Integer getGraduate() {
        return this.graduate;
    }

    public void setGraduate(Integer graduate) {
        this.graduate = graduate;
    }

    /** 
     *            @hibernate.property
     *             column="UNDER_GRADUATE"
     *             length="10"
     *         
     */
    public Integer getUnderGraduate() {
        return this.underGraduate;
    }

    public void setUnderGraduate(Integer underGraduate) {
        this.underGraduate = underGraduate;
    }

    /** 
     *            @hibernate.property
     *             column="TERTIARY"
     *             length="10"
     *         
     */
    public Integer getTertiary() {
        return this.tertiary;
    }

    public void setTertiary(Integer tertiary) {
        this.tertiary = tertiary;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_GUID"
     *             length="32"
     *         
     */
    public String getOrgGuid() {
        return this.orgGuid;
    }

    public void setOrgGuid(String orgGuid) {
        this.orgGuid = orgGuid;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("caoGuid", getCaoGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpAclsOrg) ) return false;
        CcpAclsOrg castOther = (CcpAclsOrg) other;
        return new EqualsBuilder()
            .append(this.getCaoGuid(), castOther.getCaoGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCaoGuid())
            .toHashCode();
    }

}
